package com.zzyl.nursing.controller;

import com.zzyl.common.core.page.TableDataInfo;
import com.zzyl.nursing.dto.DeviceDataPageReqDto;
import com.zzyl.nursing.service.IDeviceDataService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nursing/data")
@Slf4j
@RequiredArgsConstructor
public class DeviceDataController {
    private final IDeviceDataService deviceDataService;

    @GetMapping("/list")
    public TableDataInfo list(DeviceDataPageReqDto deviceDataPageReqDto)
    {
        return deviceDataService.selectDeviceDataList(deviceDataPageReqDto);
    }
}
